//
//  TitleCell.m
//  AnimationRecommend
//
//  Created by ljm on 2017/2/18.
//  Copyright © 2017年 ljm. All rights reserved.
//

#import "TitleCell.h"

@implementation TitleCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        _titleLabel = [[UILabel alloc]initWithFrame:AAdaptionRect(0, 0, kBaseWidth, 100)];
        _titleLabel.font = [UIFont fontWithName:@"JMiMi" size:50*AAdaptionWidth()];
        //_titleLabel.font = AAFont(40);
        _titleLabel.textAlignment = NSTextAlignmentCenter;
        _titleLabel.textColor = [UIColor cz_colorWithHex:0x4f4f4f];
        [self.contentView addSubview:_titleLabel];
    }
    return self;
}

+(instancetype)loadCellWithTableView:(UITableView *)tableView {
    
    static NSString *cellIdentifier = @"titleCell";
    
    TitleCell *cell = [tableView dequeueReusableCellWithIdentifier:cellIdentifier];
    
    if (!cell) {
        cell = [[TitleCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:cellIdentifier];
    }
    return cell;
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
